package com.hotdog.feign;

import com.hotdog.pojo.IndexInfo;
import com.hotdog.vo.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用fileSource服务之星文件上传数据入库操作
 * @author 郭鲁政
 */
@FeignClient(name = "pig-filesource")
public interface InsertUploadFeignCilents {
    /**
     * 远程调用 FileUploadController执行入库操作
     * @param indexInfo 主页信息
     * @return
     */
    @PostMapping("/uploadInfo")
    public SysResult uploadInfo (@RequestBody IndexInfo indexInfo);
}
